package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/7/23 9:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class AuthNameSpaceQueryDto implements Serializable {

    /**
     * 命名空间
     */
    private String path;

    /**
     * 命名空间启用状态 1-全部 2-启用 3-不启用
     */
    private Integer status;

    @NotNull(message = "页码不能为空")
    @Min(value = 1)
    private Integer pageNum;

    @NotNull(message = "单页条数不能为空")
    @Min(value = 1)
    @Max(value = 100)
    private Integer pageSize;

    /**
     * 排序
     * UPDATE_TIME_DESC、UPDATE_TIME_ASC
     */
    // private String orderBy = "CREATE_TIME_DESC";

}
